<?php require_once 'header.php';?>    
<!-- DataTables Responsive CSS -->
    <link href="sb2/vendor/datatables-responsive/dataTables.responsive.css" rel="stylesheet">

        <!-- Page Content -->
        <div id="page-wrapper">
            <div class="container-fluid">
                <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <?php echo XXF_LNAME?>
                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                        <?php if($zzzb){//在职在编?>
                            <table width="100%" class="table table-striped table-bordered table-hover" id="dataTables-example">
                                <thead>
                                    <tr>
                                        <th>序号</th>
                                        <th>姓名</th>
                                        <th>日期</th>
                                        <th>岗位工作[付]</th>
                                        <th>薪级工资[付]</th>
                                        <th>教师10%[付]</th>
                                        <th>保留经补贴[付]</th>
                                        <th>教龄[付]</th>
                                        <th>基础绩效[付]</th>
                                        <th>岗位绩效[付]</th>
                                        <th>其他绩效[付]</th>
                                        <th>扣绩效[付]</th>
                                        <th>通信费[付]</th>
                                        <th>应付工资合计</th>
                                        <th>个人所得税[扣]</th>
                                        <th>养老保险[扣]</th>
                                        <th>职业年金[扣]</th>
                                        <th>医保及大额医疗费互助基金[扣]</th>
                                        <th>失业保险[扣]</th>
                                        <th>住房公积金[扣]</th>
                                        <th>其他[扣]</th>
                                        <th>实发金额</th>
                                    </tr>
                                </thead>
                                <tbody>
                                	<?php
                                	$i=0;
                                	foreach($result as $row){$i++;
                                	?>
                                    <tr class="<?php echo $i%2==0?"even":"odd";?> gradeA ">
                                    	<td><?php echo $i;?></td>
                                    	<td><?php echo $row['wname'];?></td>
                                        <td><?php echo $row['adate'];?></td>
                                        <td><?php echo $row['gwgz'];?></td>
										<td><?php echo $row['xjgz'];?></td>
                                    	<td><?php echo $row['js10'];?></td>
                                        <td><?php echo $row['bljbt'];?></td>
                                        <td><?php echo $row['jl'];?></td>
                                        <td><?php echo $row['jcjx'];?></td>
                                        <td><?php echo $row['gwjx'];?></td>
                                        <td><?php echo $row['qtjx'];?></td>
                                        <td><?php echo $row['kjx'];?></td>
                                        <td><?php echo $row['txf'];?></td>
                                        <td><?php echo $row['yfgzhj'];?></td>
                                        <td><?php echo $row['grsds'];?></td>
                                        <td><?php echo $row['ylbx'];?></td>
                                        <td><?php echo $row['zynj'];?></td>
                                        <td><?php echo $row['yb'];?></td>
                                        <td><?php echo $row['sybx'];?></td>
                                        <td><?php echo $row['zfgjj'];?></td>
                                        <td><?php echo $row['qt'];?></td>
                                        <td><?php echo $row['sf'];?></td>
                                    </tr>
                                	<?php 
                                	}
                                	?>
                                </tbody>
                            </table>
                        <?php } if ($wp){?>
                            <table width="100%" class="table table-striped table-bordered table-hover" id="dataTables-example">
                                <thead>
                                    <tr>
                                        <th>序号</th>
                                        <th>姓名</th>
                                        <th>日期</th>
                                        <th>基本工资[付]</th>
                                        <th>管理岗位绩效[付]</th>
                                        <th>课时绩效[付]</th>
                                        <th>班主任绩效[付]</th>
                                        <th>其他绩效[付]</th>
                                        <th>扣绩效[付]</th>
                                        <th>保险补贴[付]</th>
                                        <th>通讯费[付]</th>
                                        <th>应付工资合计</th>
                                        <th>个人所得税[扣]</th>
                                        <th>失业保险[扣]</th>
                                        <th>医保[扣]</th>
                                        <th>养老保险[扣]</th>
                                        <th>实发金额</th>
                                        <th>备注</th>
                                    </tr>
                                </thead>
                                <tbody>
                                	<?php
                                	$i=0;
                                	foreach($result as $row){$i++;
                                	?>
                                    <tr class="<?php echo $i%2==0?"even":"odd";?> gradeA ">
                                    	<td><?php echo $i;?></td>
                                    	<td><?php echo $row['wname'];?></td>
                                        <td><?php echo $row['adate'];?></td>
                                        <td><?php echo $row['jbgz'];?></td>
										<td><?php echo $row['glgwjx'];?></td>
                                    	<td><?php echo $row['ksjx'];?></td>
                                        <td><?php echo $row['bzrjx'];?></td>
                                        <td><?php echo $row['qtjx'];?></td>
                                        <td><?php echo $row['kjx'];?></td>
                                        <td><?php echo $row['bxbt'];?></td>
                                        <td><?php echo $row['txf'];?></td>
                                        <td><?php echo $row['yfgzhj'];?></td>
                                        <td><?php echo $row['grsds'];?></td>
                                        <td><?php echo $row['sybx'];?></td>
                                        <td><?php echo $row['yb'];?></td>
                                        <td><?php echo $row['ylbx'];?></td>
                                        <td><?php echo $row['sf'];?></td>
                                        <td><?php echo $row['beizhu'];?></td>
                                    </tr>
                                	<?php 
                                	}
                                	?>
                                </tbody>
                            </table>
                        <?php }?>
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
             </div>
        </div>
        <!-- /#page-wrapper -->
  </div>
        <!-- DataTables JavaScript -->
<?php require_once 'bottom.php';?>
    <script src="sb2/vendor/datatables/js/jquery.dataTables.js"></script>
    <script src="sb2/vendor/datatables-plugins/dataTables.bootstrap.min.js"></script>
    <script src="sb2/vendor/datatables-responsive/dataTables.responsive.js"></script>
    <script>
    $(document).ready(function() {
        $('#dataTables-example').DataTable({
            responsive: true,
            "aaSorting": [[ 0, "desc" ]],
            "aLengthMenu": [ 200, 100, 50, 10 ]
        });
    });
    </script>